package com.itic.web.knowledge.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itic.appbase.framework.common.controller.BaseController;
import com.itic.appbase.framework.plugins.mybatis.Page;
import com.itic.web.knowledge.service.AppKnowledgeService;
import com.itic.web.qo.TokenData;
import com.itic.web.ro.ResResult;
import com.itic.web.ro.RoResult;



@Controller
@RequestMapping(value="/app/knowledge")
public class AppKnowledgeController extends BaseController {

	
    @Autowired
    private AppKnowledgeService knowledgeService;
    
    /**
     * @param token
     * @return
     */
    @RequestMapping(value = "/getIndex")
    @ResponseBody
    public ResResult getIndex(TokenData data,Page page){
    	return knowledgeService.getIndex(data,page);
    }
    /**
     * @param token
     * @return
     */
    @RequestMapping(value = "/getDetailList")
    @ResponseBody
    public RoResult getDetailList(TokenData data,String pid){
    	return knowledgeService.getDetailList(data,pid);
    }


    
}